package java8Up.lambda.methodProxy;

/**
 * @author Fang Ruichuan
 * @date 2022-12-23 14:44
 */
public interface MyPrinter {
    public void print(String s);
}

class Test {
    public static void main(String[] args) {
        MyPrinter myPrinter = (s) -> {
            System.out.println(s);
        };
        // ==
        MyPrinter myPrinter1 = s -> System.out.println(s);
        // ==
        MyPrinter myPrinter2 = System.out::println;
    }
}
